package com.itheima.dao;

import com.itheima.pojo.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderSettingDao {
    /**
     * 判断预约数据是否存在
     *
     * @param orderDate
     * @return
     */
    Long findCountByOrderDate(Date orderDate);

    /**
     * 添加预约数据
     *
     * @param orderSetting
     */
    void add(OrderSetting orderSetting);

    /**
     * 查询预约数据
     *
     * @param dateMap
     * @return
     */
    List<OrderSetting> getOrderSettingByMonth(Map dateMap);

    /**
     * 修改可预约人数
     *
     * @param orderSetting
     */
    void editNumberByOrderDate(OrderSetting orderSetting);

    //根据预约日期查询预约设置信息
    OrderSetting findByOrderDate(Date orderDate);

    void editReservationsByOrderDate(OrderSetting orderSetting);

    /**
     * 删除历史预约数据
     * @param time
     */
    void clearOrderSetting(String time);
}
